package com.sanley.piss.web.service.mapper;

import com.github.pagehelper.PageInfo;
import com.sanley.piss.model.IService;
import com.sanley.piss.model.po.BasicInfo;
import com.sanley.piss.model.vo.BasicInfoVO;

import java.util.List;

/**
 * Create By  on 2021/3/22.
 * @author 张凯大天才
 */
public interface IBasicInfoService extends IService<BasicInfo> {
    List<BasicInfoVO> selectAll(Integer userId);

    void insert(BasicInfoVO basicInfo,Integer userId);

    /**
     * 分页查询所有
     * @param pageNum
     * @param PageSize
     * @return
     */
    PageInfo<BasicInfoVO> page(Integer pageNum, Integer PageSize);

    void updateOrgByUserId(String orgName,Integer id);

    void updateById(BasicInfoVO basicInfo);


    @Override
    BasicInfoVO selectById(Integer id);

    void batchInsert(List<BasicInfo> list);



}
